package com.sbpm.crmbpm.server.dao;

import com.sbpm.crmbpm.shared.data.client.Company;
import com.sbpm.crmbpm.shared.data.client.Segment;

import java.util.List;

public interface CompanyDao extends AbstractDao<Company>
{
    List<Company> findCompanies( String value, int offset, int limit );
    int findCompaniesCount( String value );

    List<Company> findCompanies( String name, String legalName, String inn, String ogrn, String kpp, Segment segment );

    Company findCompanyWithAllAttributes( Long id );
}
